﻿<%@ Page Title="Đổi mật khẩu" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ChangePass.aspx.cs" Inherits="CompanyManagement.admin.ChangePass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SiteMapContent" runat="server">
    <div id="breadcrumbs">
        <ul class="breadcrumb">
            <li>
                <i class="icon-home"></i>
                <a href="#">Trang chủ</a>

                <span class="divider">
                    <i class="icon-angle-right"></i>
                </span>
            </li>
            <li class="active">Đổi mật khẩu</li>
        </ul>
        <!--.breadcrumb-->

        <div id="nav-search">
        </div>
        <!--#nav-search-->
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <h3 class="lighter">
        <i class="icon-cogs orange"></i>
        Đổi mật khẩu
    </h3>
    <div class="alert alert-block alert-success" id="success" runat="server" visible="false">
        <asp:Literal ID="ltrSuccess" runat="server"></asp:Literal>
    </div>
    <div class="alert alert-block alert-error" id="error" runat="server" visible="false">
        <asp:Literal ID="ltrError" runat="server"></asp:Literal>
    </div>
    <table class="table">
        <tr>
            <td>
                <div class="form-horizontal">
                    <div class="control-group">
                        <label class="control-label">Mật khẩu cũ</label>
                        <div class="controls">
                            <telerik:RadTextBox TextMode="Password" runat="server" ID="txtOldPass"></telerik:RadTextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ValidationGroup="changePass" CssClass="help-inline" ErrorMessage="Bạn chưa nhập mật khẩu." SetFocusOnError="true" Display="Dynamic" ForeColor="Red" ControlToValidate="txtOldPass"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Mật khẩu mới</label>
                        <div class="controls">
                            <telerik:RadTextBox TextMode="Password" runat="server" ID="txtNewPass"></telerik:RadTextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ValidationGroup="changePass" CssClass="help-inline" ErrorMessage="Bạn chưa nhập mật khẩu mới." SetFocusOnError="true" Display="Dynamic" ForeColor="Red" ControlToValidate="txtNewPass"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">Xác nhận mật khẩu mới</label>
                        <div class="controls">
                            <telerik:RadTextBox TextMode="Password" runat="server" ID="txtNewPassConfirm"></telerik:RadTextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ValidationGroup="changePass" CssClass="help-inline" ErrorMessage="Bạn chưa xác nhận mật khẩu." SetFocusOnError="true" Display="Dynamic" ForeColor="Red" ControlToValidate="txtNewPassConfirm"></asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="CompareValidator1" runat="server" ValidationGroup="changePass" CssClass="help-inline" ControlToCompare="txtNewPass" ForeColor="Red" ControlToValidate="txtNewPassConfirm" Operator="Equal" ErrorMessage="Xác nhận mật khẩu không đúng" SetFocusOnError="true" Display="Dynamic"></asp:CompareValidator>
                        </div>
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <dl>
                    <dt></dt>
                    <dd>
                        <asp:Button ID="btnSave" runat="server" Text="Lưu thay đổi" ValidationGroup="changePass" CssClass="btn btn-small btn-primary" OnClick="btnSave_Click" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="btn btn-small btn-info" CausesValidation="false" OnClick="btnReset_Click" />
                    </dd>
                </dl>
            </td>
        </tr>
    </table>
</asp:Content>
